package com.gnerv.pabu.basic.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gnerv.pabu.basic.core.dto.EmailConfigDTO;
import com.gnerv.pabu.basic.core.dto.EmailConfigSearchDTO;
import com.gnerv.pabu.basic.core.entity.EmailConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 基础平台-邮件表 Mapper 接口
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Mapper
public interface EmailConfigMapper extends BaseMapper<EmailConfig> {

    int updateEmailConfigStatus(@Param("emailConfigId") String emailConfigId, @Param("status") Integer status);

    EmailConfigDTO selectEmailConfig(@Param("emailConfigId") String emailConfigId);

    Page<EmailConfigDTO> listEmailConfig(@Param("page") Page<EmailConfigDTO> page, @Param("search") EmailConfigSearchDTO search);
}
